//==========================================================================
// Copyright (c) 2000-2008,  Elastos, Inc.  All Rights Reserved.
//==========================================================================
#ifndef _BL_TIME_H
#define _BL_TIME_H

#ident "$Id: time.h,v 1.1 2006/06/23 06:33:30 zhangyi Exp $"

#include "types.h"

#define TICKS_PER_SECOND 32768

/* initialise timer */
void TimerInit(void);

/* time in second */
u32  TimerGetTime(void);

/* time in 1/100 second*/
u32  TimerGetCentiTime(void);

/* jiffies should be defined as volatile */
extern volatile unsigned long jiffies;
extern volatile unsigned long jiffies_div10;

void msleep(unsigned int ms);
void msleep_cli(unsigned int ms);

#endif
